package Homework7;

public class Villa extends HouseProperty {
    public Villa(double area, double unitPrice) {
        super(area, unitPrice);
    }

    @Override
    public double taxCalculation() {
        double totalPrice = getTotalPrice();
        return totalPrice * 0.05 + 100000; // 5% tax + 100,000 consumption tax
    }
}
